﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Text;
using Commonlib;
namespace DAL
{
    public class ModelDAL
    {
        public DataTable getModel(string userName, string styleid)
        {
            string cmdstr = "select * from ModelInfo where userName='albon' and styleID="+styleid+" or userName='"+userName+"' and styleID="+styleid;
            return SqlHelper.ExecuteDataSet(SqlHelper.SqlConnectionString, CommandType.Text, cmdstr, null).Tables[0];
        }
    }
}
